package com.liao.badminton.mapper;

import com.liao.badminton.code.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liao.badminton.dto.ImportRecordDto;
import com.liao.badminton.vo.ImportRecordVo;
import org.apache.ibatis.annotations.Mapper;
import com.liao.badminton.entity.ImportRecord;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* @author liaocheng
* @date 2024-10-31
* description:录入记录表
*/
@Mapper
public interface ImportRecordMapper extends BaseMapper<ImportRecord> {
    int updateBy(ImportRecord importRecord);
    int add(ImportRecord importRecord);
    List<ImportRecordVo> findByPageParam(PageParam<ImportRecordDto> importRecordPageParam);
    int countByPageParam(PageParam<ImportRecord> importRecordPageParam);
    int deletes(@Param("ids") List<Long> ids);
    List<ImportRecord> findByIds(@Param("ids") List<Long> ids);
    void addBatch(List<ImportRecord> list);
    ImportRecord findById(@Param("id") Long id);
    List<ImportRecord> findByParam(@Param("param") ImportRecord param);
}
